<p>
<?php
echo $this->Session->flash();
//echo "<br/>";
echo $form->create('User');
echo $form->input('oldpassword',array('div'=>false,'type'=>'password','label'=>__('Old password',true)));
echo "<br/>";
echo $form->input('newpassword',array('div'=>false,'class'=>'required','type'=>'password','label'=>__('New password',true)));
echo "<br/>";
echo $form->input('confirmpassword',array('div'=>false,'class'=>'required','type'=>'password','label'=>__('Confirm password',true),'equalTo'=>'#UserNewpassword'));
?>
</p>
<p><center>
<?php
echo $js->submit('Change password',array('div'=>false,'url'=>array('action'=>'changeadminpassword'),NULL,'update'=>'#PasswordTab','confirm'=>__('Are you sure ?',true)));
echo $form->end();
?>
</center></p>
<?php echo $this->Js->writeBuffer(); ?>